Regular Expression Renames |
![]() ![]() ![]() |
To rename files using Perl-compatible Regular Expressions, select one or more files in the Folder Viewer and select Rename A template is the expression used with the regular expression defined in the old name field to create a new filename. Example - Partial Name Change: If "ABCDEF" is the file name, and you want to change "CD" to "HJ", enter "CD" in the Old mask field and "HJ" in the New mask field. The new filename will be "ABHJEF". Example - Complete Name Change: If "Beyond" is the file name, and you want to change it to "Scooter", enter ".*" in the Old mask field and "Scooter" in the New mask field. You can also change the filename by entering "Beyond" in the Old mask field and "Scooter" in the New mask field. However, for simple renames, it's easier to use a the DOS compatible option. Example - Changing a group of filenames If you have a group of text files with six-letter names, and you want to swap the first three and the last three letters, enter "(...)(...).txt" in the Old mask field and "$2$1.txt" in the New mask field. In this case, "beyond.txt" becomes "ondbey.txt". Another example is if you have a group of music files that are titled "Artist-Song" and you want to change them to "Artist - Song", enter "-" in the Old mask field and " - " in the New mask field. |